﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Extentions;

namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// 员工OpenID
    /// </summary>
    [ExLanguageKey("SysEmployeeOpenID")]
    public partial class SysEmployeeOpenIDExList
    {
        /// <summary>
        /// 
        /// </summary>
        [ExLanguageKey("ID")]
        [Key]
        public int ID { get; set; }

        /// <summary>
        /// 员工ID
        /// </summary>
        [ExLanguageKey("SysEmployeeID")]
        public int? SysEmployeeID { get; set; }

        /// <summary>
        /// OpenID类型;微信公众号 = 0, 微信小程序 = 1, 微信网站应用 = 10
        /// </summary>
        [ExLanguageKey("EnumOpenIDType")]
        public EnumOpenIDType EnumOpenIDType { get; set; }

        /// <summary>
        /// OpenID
        /// </summary>
        [ExLanguageKey("OpenID")]
        public string OpenID { get; set; }

        /// <summary>
        /// unionid
        /// </summary>
        [ExLanguageKey("unionid")]
        public string unionid { get; set; }

        /// <summary>
        /// 微信相关JSON格式
        /// </summary>
        [ExLanguageKey("WxJson")]
        public string WxJson { get; set; }

        /// <summary>
        /// 微信昵称
        /// </summary>
        [ExLanguageKey("nickname")]
        public string nickname { get; set; }

        /// <summary>
        /// 微信头像
        /// </summary>
        [ExLanguageKey("headimgurl")]
        public string headimgurl { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [ExLanguageKey("CreateDate")]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [ExLanguageKey("UpdateDate")]
        public DateTime UpdateDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ExLanguageKey("Remark")]
        public string Remark { get; set; }

        /// <summary>
        /// 员工
        /// </summary>
        [ExNoModify]
        [ExLanguageKey("SysEmployee")]
        public SysEmployeeExPart SysEmployee { get; set; }
    }
}
